


class OuterClass2{
    public int date1 = 10;
    private int date2 = 20;
    public static int date3 = 30;

    public void method(){
        System.out.println("外部类的mothod");
    }

    static class InnerClass2{
        public int date4 = 40;
        private int date5 = 50;
        public static int date6 = 60;
        OuterClass2 out = new OuterClass2();

        InnerClass2(){
            System.out.println("静态内部类的构造方法");
        }
        public void mothod(){
            System.out.println(out.date1);
            System.out.println(out.date2);
            System.out.println(date3);
            System.out.println(date4);
            System.out.println(date5);

        }
    }
}
public class TextDemo2 {
    public static void main(String[] args) {

        OuterClass2.InnerClass2 innerClass = new OuterClass2.InnerClass2();
    }
}
